import { get, getRestful, post, put, del } from '@/util/request'
const API_PATH = "/inner_api/front/moment"

/**
 * 获取动态分页数据
 * 
 * @param {*} data 
 * @returns 
 */
export function getMomentListByPageNum (data) {
  return post(API_PATH + '/selectByPage', data)
}

/**
 * 点赞
 * @param {*} id 
 * @returns 
 */
export function likeMoment (id) {
  return getRestful(API_PATH + '/like', id)
}